﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Itech_Run.Domain.Shared.Base;

namespace Itech_Run.Sys.Domain.Entity
{

    public partial class Sys_RoleModule: CustomAggregateRoot<string>
    {

        [ForeignKey("Sys_Role")] 
        [Required]
        [StringLength(36)]
        public string RoleId { get; set; }

        [ForeignKey("Sys_Module")] 
        [Required]
        [StringLength(36)]
        public string ModuleId { get; set; }

        public virtual Sys_Module Module { get; set; }

        public virtual Sys_Role Role { get; set; }

    }
}
